//
//  LSZMyHeaderCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/3/29.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZMyHeaderCell.h"

@implementation LSZMyHeaderCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewIcon = [[UIImageView alloc]init];
        [self addSubview:self.imageViewIcon];

        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.textColor = titleColorLSZ;
        [self addSubview:self.labelTitle];

        self.labelExplain = [[UILabel alloc]init];
        self.labelExplain.textColor = lightColor;
        self.labelExplain.textAlignment = NSTextAlignmentRight;
        [self addSubview:self.labelExplain];

        if (ScreenWidth == 320) {
            //5
            self.labelTitle.font = FONT_(13.5);
            self.labelExplain.font = FONT_(12.5);

            self.imageViewIcon.frame = CGRectMake(15, (45-17)/2, 17, 17);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewIcon.frame)+3, 13, 100, 45-26);
            self.labelExplain.frame = CGRectMake(CGRectGetMaxX(self.labelTitle.frame), 13, ScreenWidth-CGRectGetMaxX(self.labelTitle.frame)-25, 45-26);
            [LSZSpecialPackaging addThreadWithOtherRGB:self A:10 B:44 C:ScreenWidth-20 D:1 R:241 G:241 BB:241];

        }else if(ScreenWidth == 375){
            // 6 7
            self.labelTitle.font = FONT_(14);
            self.labelExplain.font = FONT_(13);

            self.imageViewIcon.frame = CGRectMake(15, (50-19)/2, 19, 19);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewIcon.frame)+3, 14, 100, 50-28);
            self.labelExplain.frame = CGRectMake(CGRectGetMaxX(self.labelTitle.frame), 14, ScreenWidth-CGRectGetMaxX(self.labelTitle.frame)-25, 50-28);
            [LSZSpecialPackaging addThreadWithOtherRGB:self A:10 B:49 C:ScreenWidth-20 D:1 R:241 G:241 BB:241];

        }else {
            //plus
            self.labelTitle.font = FONT_(14.5);
            self.labelExplain.font = FONT_(13.5);
            self.imageViewIcon.frame = CGRectMake(15, (58-21)/2, 21, 21);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewIcon.frame)+3, 15, 100, 58-30);
            self.labelExplain.frame = CGRectMake(CGRectGetMaxX(self.labelTitle.frame), 15, ScreenWidth-CGRectGetMaxX(self.labelTitle.frame)-28, 58-30);
            [LSZSpecialPackaging addThreadWithOtherRGB:self A:20 B:57 C:ScreenWidth-40 D:1 R:241 G:241 BB:241];

        }
    }
    return self;
}

@end
